﻿<UserControl x:Class="DIST.LR.ZHJG.Controls.Chart.ucVFLinearGaugeSin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vg="clr-namespace:Visifire.Gauges;assembly=SLVisifire.Gauges"
    mc:Ignorable="d"
    d:DesignHeight="70" d:DesignWidth="380">

    <Grid x:Name="LayoutRoot" Background="Transparent">

        <vg:Gauge x:Name="VFLinearGaugeSin" Type="Linear" Background="Transparent" OuterBackground="Transparent" Width="380" Height="70" CornerRadius="5" OuterCornerRadius="5">
            
            <vg:Gauge.LinearScales>
                <vg:LinearScale Interval="20" ScaleThickness="0.07" Minimum="{Binding Minmum}" Maximum="{Binding Maxmum}"  BorderThickness="0" BorderBrush="Black" Orientation="Horizontal" Position="0,0.8" StartMargin="0.04" EndMargin="0.05" ShadowEnabled="false">
                    <vg:LinearScale.MajorTicks>
                        <vg:MajorTicks TickWidth="0.012" TickLength="1.2" Placement="Outside" Background="Black"/>
                    </vg:LinearScale.MajorTicks>
                    <vg:LinearScale.MinorTicks>
                        <vg:MinorTicks TickWidth="0.008" TickLength="0.8" Placement="Outside" Background="Black"/>
                    </vg:LinearScale.MinorTicks>
                    <vg:LinearScale.ScaleLabels>
                        <vg:ScaleLabels Placement="Outside"/>
                    </vg:LinearScale.ScaleLabels>
                </vg:LinearScale>
            </vg:Gauge.LinearScales>

            <vg:Gauge.Indicators>
                <vg:BarIndicator Value="0" StartWidth="0" EndWidth="0" ShadowEnabled="False" Placement="Center"/>
            </vg:Gauge.Indicators>

            <vg:Gauge.Ranges>
                <vg:Range StartValue="0" EndValue="{Binding Value1}" Background="{Binding Color1}" StartWidth="0.12" EndWidth="0.12" Placement="Outside" DistanceFromScale="0">
                </vg:Range>
                <vg:Range StartValue="{Binding Value1}" EndValue="{Binding Value2}" Background="{Binding Color2}" StartWidth="0.12" EndWidth="0.12" Placement="Outside" DistanceFromScale="0">
                </vg:Range>
            </vg:Gauge.Ranges>
        </vg:Gauge>     
    </Grid>
</UserControl>
